home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple AUX 3.0
/
Apple AUX 3.0.iso
/
System Folder
/
Extensions
/
AppleShare
/
AppleShare.rsrc
/
bin.rsrc_INIT_32_RealFSInit.txt
< prev
next >
Wrap
Text File
|
1991-04-25
|
4KB
|
65 lines
start:
00000000 48E7 1020 movem.l -[A7], D3,A2
00000004 363C 0001 move.w D3, 0x1
00000008 303C 00AD move.w D0, 0xAD
0000000C A346 syscall GetOSTrapAddress, flags=3
0000000E 2248 movea.l A1, A0
00000010 303C 009F move.w D0, 0x9F
00000014 A746 syscall GetToolBoxTrapAddress/GetToolTrapAddress, flags=7
00000016 B3C8 cmpa.l A1, A0
00000018 6714 beq +0x16 /* 0000002E */
0000001A 203C 6673 2020 move.l D0, 0x66732020 /* 'fs ' */
00000020 A1AD syscall Gestalt, flags=1
00000022 3600 move.w D3, D0
00000024 6608 bne +0xA /* 0000002E */
00000026 2008 move.l D0, A0
00000028 0800 0000 btst.b D0, 0x0
0000002C 6668 bne +0x6A /* 00000096 */
label0000002E:
0000002E 42A7 clr.l -[A7]
00000030 2F3C 6173 6364 move.l -[A7], 0x61736364 /* 'ascd' */
00000036 3F3C 0029 move.w -[A7], 0x29 /* ')' */
0000003A A81F syscall Get1Resource
0000003C 201F move.l D0, [A7]+
0000003E 6756 beq +0x58 /* 00000096 */
00000040 2440 movea.l A2, D0
00000042 2F0A move.l -[A7], A2
00000044 A992 syscall DetachResource
00000046 2012 move.l D0, [A2]
00000048 A055 syscall StripAddress
0000004A 2240 movea.l A1, D0
0000004C 7060 moveq.l D0, 0x60
0000004E A346 syscall GetOSTrapAddress, flags=3
00000050 2288 move.l [A1], A0
00000052 2049 movea.l A0, A1
00000054 5848 addq.w A0, 4
00000056 7060 moveq.l D0, 0x60
00000058 A247 syscall SetOSTrapAddress, flags=2
0000005A 0C43 0001 cmpi.w D3, 0x1
0000005E 6736 beq +0x38 /* 00000096 */
00000060 42A7 clr.l -[A7]
00000062 2F3C 6173 6364 move.l -[A7], 0x61736364 /* 'ascd' */
00000068 3F3C 002A move.w -[A7], 0x2A /* '*' */
0000006C A81F syscall Get1Resource
0000006E 201F move.l D0, [A7]+
00000070 6724 beq +0x26 /* 00000096 */
00000072 2440 movea.l A2, D0
00000074 2F0A move.l -[A7], A2
00000076 A992 syscall DetachResource
00000078 2012 move.l D0, [A2]
0000007A A055 syscall StripAddress
0000007C 2040 movea.l A0, D0
0000007E 2248 movea.l A1, A0
00000080 5848 addq.w A0, 4
00000082 203C 6673 2020 move.l D0, 0x66732020 /* 'fs ' */
00000088 0C43 0000 cmpi.w D3, 0x0
0000008C 6704 beq +0x6 /* 00000092 */
0000008E A3AD syscall NewGestalt, flags=3
00000090 6004 bra +0x6 /* 00000096 */
label00000092:
00000092 A5AD syscall ReplaceGestalt, flags=5
00000094 2288 move.l [A1], A0
label00000096:
00000096 4CDF 0408 movem.l D3,A2, [A7]+
0000009A 4E75 rts